package com.yangfei.mystudy1020.activity;

import android.app.Activity;
import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.yangfei.mystudy1020.R;
import com.yangfei.mystudy1020.animation.AnimActivityListAdaptor;
import com.yangfei.mystudy1020.animation.AnimDataMap;

import butterknife.BindView;
import butterknife.ButterKnife;

public class AnimationActivity extends Activity {

    @BindView(R.id.recycler_view)
    RecyclerView recyclerView;
    AnimDataMap mAnimDataMap;
    AnimActivityListAdaptor mAnimActivityListAdaptor;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_animation);
        ButterKnife.bind(this);
        mAnimDataMap = new AnimDataMap(this);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        mAnimActivityListAdaptor = new AnimActivityListAdaptor(this,mAnimDataMap.animList);
        recyclerView.setAdapter(mAnimActivityListAdaptor);
    }
}
